package com.zdkj.daemon.quartz.feign;

import com.zdkj.common.core.constant.SecurityConstants;
import com.zdkj.common.core.constant.ServiceNameConstants;
import com.zdkj.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @support: UPM模块对外接口类
 * @author: cui_com
 * @version: 1.0
 * @Date: 2020-01-31 17:09
 * @Description: <p>
 *
 * </p>
 */
@FeignClient(contextId = "remoteUpmsService", value = ServiceNameConstants.UPMS_SERVICE)
@Component
public interface RemoteUpmsService {
    /**
     * 通过票务日志配置进行归档
     *
     * @param from 调用标志
     * @return R
     */
    @PostMapping("/log/file/expire")
    R recordExpireByLogSet(@RequestHeader(SecurityConstants.FROM) String from);


}
